TAGs: Hair matrix function